package com.zwj.design.behavior.strategy.duck.impl;

import com.zwj.design.behavior.strategy.behavior.impl.FlyNoWay;
import com.zwj.design.behavior.strategy.behavior.impl.Quack;
import com.zwj.design.behavior.strategy.duck.Duck;

/**
 * @author 张文接
 * @version 1.0
 * @createTime 2024/3/14 22:30
 */
public class ModelDuck extends Duck {

    /**
     * 初始化
     */
    public ModelDuck() {
        this.flyBehavior = new FlyNoWay();
        this.quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.err.println("我是一只模型鸭子。。。。。。。。。。。");
    }
}
